def create_gomoku_board(size=15):
    # 打印棋盘的行
    for i in range(size):
        # 打印棋盘的列
        for j in range(size):
            print('+---', end='')
        print('+')
        for j in range(size):
            print('|   ', end='')
        print('|')
    # 打印最后一行的横线
    for j in range(size):
        print('+---', end='')
    print('+')

# 调用函数，默认生成15x15的棋盘，也可以指定大小如create_gomoku_board(10)
create_gomoku_board()